{include file="header.html"}    
<div class="mb-head">
    <a href="javascript:history.back(-1);" class="l_b"></a>
    <!--<div class="tit">{$lang.store}</div>-->
    <div class="search">
        <div class="search-box">
            <form>
                <input type="hidden" name="app" value="search"/>
                <input type="hidden" name="act" value="store"/>
                <input type="text" name="keyword"  value="" placeholder="{$lang.Search_shop}" class="keyword" />
                <input type="submit" class="search-btn" value="" />
            </form>
        </div>
    </div>
    <a href="{url app=category&act=store}" class="r_b icon-cat">{$lang.category}</a>
</div>  
<div class="new-tab">
     <ul class="tab-ul">
                <li {if $cate_id == 0} class="cur"{/if}><a href="{url app=search&act=store}">{$lang.all}</a></li>
                <!--{foreach from=$scategorys item=category name=fe_category}-->
                <li id="cat_{$category.id}" {if $cate_id == $category.id} class="cur"{/if}><a href="{url app=search&act=store&cate_id=$category.id}">{$category.value|escape}</a></li>
                <!--{/foreach}-->
    </ul>
</div>
<script>
    $(function () {
       
        x = $("#cat_"+{$cate_id}).offset();
        if(x.left > $(document).width()){
            $(".tab-ul").scrollLeft(x.left-$(document).width()/2.0);
        }
        
    })  
</script>
<div class="radius">
    <ul>
        <!--{foreach from=$stores item=store}-->
        <li style="padding: 10px;border-top: none;overflow: hidden;{if $smarty.foreach.fe_goods.iteration neq 1}border-bottom: 1px solid #e0e0e0;{/if}line-height: 1.6em;">
            <a href="{url app=store&id=$store.store_id}" style="display: block;overflow: hidden;lear: both;padding: .22em 0;">
                <span class="mu-tmb" style="float:left;margin-right:8px;">
                    <img src="{$site_url}/{$store.store_logo}" alt="{$store.store_name|escape}" width="100" height="100"/>
                </span>
                <span>{$store.store_name|escape}</span>
                <span class="red" style="display: block;">{$store.user_name|escape}</span>
                <span>{$store.region_name|escape}<img src="{$store.credit_image}"/></span>
            </a>
        </li>
        <!--{foreachelse}-->
    <div class="null">
        <p>{$lang.no_records}~</p>
    </div>
        <!--{/foreach}-->
    </ul>
</div>
{include file='page.bottom.html'}

{include file="footer.html"}